﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using ClientLib;

namespace JigsawAdmin.SubForms.Security
{
    public partial class UserRoles : Form
    {
        ClientUtil _cutil;
        JsvcEnc.EncSoapXml xmlsvc;

        public UserRoles(ClientUtil cUtil, string userID)
        {
            InitializeComponent();

            _cutil = cUtil;
            xmlsvc = new JsvcEnc.EncSoapXml();
            xmlsvc.Url = _cutil.ServiceURL;

            // populate form grids
            PopulateAssignedRoles();
            PopulateAvailableRoles();
            PopulateUserMethodList();
        }

        /// <summary>
        /// 
        /// </summary>
        public void PopulateAssignedRoles()
        {

        }

        /// <summary>
        /// 
        /// </summary>
        public void PopulateAvailableRoles()
        {

        }

        /// <summary>
        /// 
        /// </summary>
        public void PopulateUserMethodList()
        {

        }

        /// <summary>
        /// Double click deletes role membership
        /// </summary>
        private void dgvAssignedRoles_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        /// <summary>
        /// Double click assignes role membership
        /// </summary>
        private void dgvAvailableRoles_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {

        }

    }
}
